<?php
// +----------------------------------------------------------------------
// | Quotes [未来可期]
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | Author: 夸克广告自助系统 https://support.qq.com/products/129921/ 作者QQ：79517721
// +----------------------------------------------------------------------
// | Date: 2022年3月5日
// +----------------------------------------------------------------------

include 'app/common.php';
$act = isset($_GET['act']) ? daddslashes($_GET['act']) : null;
@header('Content-Type: application/json; charset=UTF-8');
$today = date("Y-m-d");//当天时间

$menu = [
    [
        "id" =>1,
        "title" =>"工作空间",
        "icon" =>"layui-icon layui-icon-console",
        "type" =>0,
        "children" =>[
            [
                "id" =>10,
                "title" =>"控制后台",
                "icon" =>"layui-icon layui-icon-console",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/console.php"
            ]
        ]
    ],
    [
        "id" =>"result",
        "title" =>"网站设置",
        "icon" =>"layui-icon layui-icon-auz",
        "type" =>0,
        "href" =>"",
        "children" =>[
            [
                "id" =>"301",
                "title" =>"系统设置",
                "icon" =>"layui-icon layui-icon-face-smile",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/sys_setting.php"
            ],
            [
                "id" =>"302",
                "title" =>"账号安全",
                "icon" =>"layui-icon layui-icon-face-cry",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/user_info.php"
            ],
            [
                "id" =>"303",
                "title" =>"邮箱信息",
                "icon" =>"layui-icon layui-icon-face-cry",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/email_set.php"
            ],
            [
                "id" =>"304",
                "title" =>"支付信息",
                "icon" =>"layui-icon layui-icon-face-cry",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/pay_set.php"
            ]
        ]
    ],
    [
        "id" =>"common",
        "title" =>"网站广告",
        "icon" =>"layui-icon layui-icon-template-1",
        "type" =>0,
        "href" =>"",
        "children" =>[
            [
                "id" =>701,
                "title" =>"大横幅广告",
                "icon" =>"layui-icon layui-icon-face-smile",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/big_ad.php"
            ],
            [
                "id" =>702,
                "title" =>"小横幅广告",
                "icon" =>"layui-icon layui-icon-face-smile",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/small_ad.php"
            ],
            [
                "id" =>703,
                "title" =>"文字广告",
                "icon" =>"layui-icon layui-icon-face-smile",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/word_ad.php"
            ]
        ]
    ],
    [
        "id" =>"log",
        "title" =>"日志记录",
        "icon" =>"layui-icon layui-icon-template-1",
        "type" =>0,
        "href" =>"",
        "children" =>[
            [
                "id" =>801,
                "title" =>"充值记录",
                "icon" =>"layui-icon layui-icon-face-smile",
                "type" =>1,
                "openType" =>"_iframe",
                "href" =>"view/pay_log.php"
            ]
        ]
    ]
];

echo  json_encode($menu);